package com.ruoyi.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PermissionBatchDTO {

    private Long userId;
    private Long roleId;

    // 授权目标类型 0-文件 1-文件夹
    private Integer refType;
    // 文件/文件夹ID集合
    private List<Long> refIds;
    // 用户ID集合
    private List<Long> userIds = new ArrayList<>();
    // 角色ID集合
    private List<Long> roleIds = new ArrayList<>();
    // 权限值
    private Boolean canDelete;
    private Boolean canView;
    private Boolean canEdit;
    private Boolean canAdd;
}
